<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ taglib prefix="indra" uri="http://indra.peru.com"%>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<meta http-Equiv="Pragma" Content="no-cache">
<meta http-Equiv="Expires" Content="0">
<title>Continuidad Banca Minorista</title>
<%
	String aleatorio="?aleatorio="+(int)(Math.random()*999999999);
 %>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/estilos.css"/>

<!-- INI: JQUERY STYLE -->
<!-- link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquery/themes/base/jquery.ui.all.css" -->
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/demos.css">
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/redmond/jquery-ui-1.8.13.custom.css">
<!-- FIN: JQUERY STYLE -->

<!-- INI: JQUERY -->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery/ui/jquery.ui.widget.js"></script>
<!-- FIN: JQUERY -->

<!-- INI: CALENDARIO -->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery/ui/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery/ui/i18n/jquery.ui.datepicker-es.js"></script> 
<!-- FIN: CALENDARIO -->

<!-- INI: AUTOCOMPLETE -->
<script src="<%=request.getContextPath()%>/js/jquery/ui/jquery.ui.position.js"></script>
<script src="<%=request.getContextPath()%>/js/jquery/ui/jquery.ui.autocomplete.js"></script>
<!-- FIN: AUTOCOMPLETE -->

<script src="<%=request.getContextPath()%>/js/jquery/external/jquery.bgiframe-2.1.1.js"></script>

<script src="<%=request.getContextPath()%>/js/jquery/ui/jquery.ui.mouse.js"></script> 
<script src="<%=request.getContextPath()%>/js/jquery/ui/jquery.ui.draggable.js"></script> 
<script src="<%=request.getContextPath()%>/js/jquery/ui/jquery.ui.resizable.js"></script> 
<script src="<%=request.getContextPath()%>/js/jquery/ui/jquery.ui.dialog.js"></script>

<!-- INI: MASCARA FORMATO -->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery/external/jquery.metadata.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery/plugins/jquery.meio.mask.min.js"></script>
<!-- FIN: MASCARA FORMATO -->
<script type="text/javascript" src="<%=request.getContextPath()%>/js/comun.js<%=aleatorio%>"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/cargando.js<%=aleatorio%>"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validacion.js<%=aleatorio%>"></script>

<!-- INI: ESTILO PERSONALIZADO -->
<script src="<%=request.getContextPath()%>/js/jquery/jquery-ui-1.8.13.custom.min.js"></script>
<script src="<%=request.getContextPath()%>/js/jquery/external/jquery.blockUI.js"></script>
<!-- FIN: ESTILO PERSONALIZADO -->

<script type="text/javascript">
	var fechaActual = '${fechaActual}';
	var TRANSACCION = '${transaccion}';
	var ITF = '${cache.instancia.itf}';
	var FLAG_RENIEC = '${flagReniec}';
	var TRANSACCION_SIGNIFICATIVA = 0;
	var ID_TRANS_RETIRO_EFECTIVO = 5;
	var ID_TRANS_PAGO_CHEQUE = 6;
	
	var CHEQUE_VAL_MES = '${cache.instancia.paramValCheque}';
	
	function getMethod(url){
		var urlArray=url.split('&');
		var parameter;
		for(i=0;i<urlArray.lenght;i++){
			parameter=urlArray[i].split('=');
			if(parameter[0]=='method'){
				return parameter[1];
			}	
		}
	}
	
	function ir(obj){
			var action = obj;			
			$.ajax(
				{
					type:'POST',
					url:action,
					data: $('#formulario').serialize(),					
					success: function(text){
						/*var method=getMethod(action);
						alert(method);
						eval(method+"('"+text+"')");
						*/
						$('#divListado').html(text);
					}
				}
			);
			return false;
	}
	function limpiarFormulario(formulario) {
    	$(formulario).find(':input').each(function() {
	        switch(this.type) {
	            case 'password':
	            case 'select-multiple':
	            case 'select-one':
	            case 'text':
	            case 'textarea':
	                $(this).val('');
	                break;
	            case 'checkbox':
	            case 'radio':
	                this.checked = false;
	        }
    	});

}
	
</script>
<%
/************************** INI: MENSAJE **************************/
String mensaje = (String) request.getAttribute("mensaje");
if(mensaje != null) {
%>
<script language="javascript">
$(document).ready(function () {
	var resultado = new ResultadoOperacion();
	resultado.cargarParametros("<%=mensaje%>");
	resultado.mostrarMensaje();
});

</script>
<%}
/************************** FIN: MENSAJE **************************/
%>


<div id='cargaABCDE' style='display: none;z-index: 5001' >
	<table>
	<tr><td valign='middle'><center><img src='images/cargando.gif'/></center></td></tr>
	<tr style="display: none" id="btnCerrarCargado"><td valign='middle'><input type="button" class="boton" style="width: 158px" value="Cerrar" onclick="javascript:finalizarCargaPagina();"/></td></tr>
	</table>
</div>
